/**
 * <copyright>
 * </copyright>
 *
 * $Id$
 */
package org.hl7.v3;

import java.util.Arrays;
import java.util.Collections;
import java.util.List;

import org.eclipse.emf.common.util.Enumerator;

/**
 * <!-- begin-user-doc -->
 * A representation of the literals of the enumeration '<em><b>Race American Indian Iroquois</b></em>',
 * and utility methods for working with them.
 * <!-- end-user-doc -->
 * <!-- begin-model-doc -->
 * specDomain: S15129 (C-0-T14914-S14915-S14916-S15129-cpt)
 * <!-- end-model-doc -->
 * @see org.hl7.v3.V3Package#getRaceAmericanIndianIroquois()
 * @model extendedMetaData="name='RaceAmericanIndianIroquois'"
 * @generated
 */
public enum RaceAmericanIndianIroquois implements Enumerator {
	/**
	 * The '<em><b>12856</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_12856_VALUE
	 * @generated
	 * @ordered
	 */
	_12856(0, "_12856", "1285-6"),

	/**
	 * The '<em><b>12864</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_12864_VALUE
	 * @generated
	 * @ordered
	 */
	_12864(1, "_12864", "1286-4"),

	/**
	 * The '<em><b>12872</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_12872_VALUE
	 * @generated
	 * @ordered
	 */
	_12872(2, "_12872", "1287-2"),

	/**
	 * The '<em><b>12880</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_12880_VALUE
	 * @generated
	 * @ordered
	 */
	_12880(3, "_12880", "1288-0"),

	/**
	 * The '<em><b>12898</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_12898_VALUE
	 * @generated
	 * @ordered
	 */
	_12898(4, "_12898", "1289-8"),

	/**
	 * The '<em><b>12906</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_12906_VALUE
	 * @generated
	 * @ordered
	 */
	_12906(5, "_12906", "1290-6"),

	/**
	 * The '<em><b>12914</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_12914_VALUE
	 * @generated
	 * @ordered
	 */
	_12914(6, "_12914", "1291-4"),

	/**
	 * The '<em><b>12922</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_12922_VALUE
	 * @generated
	 * @ordered
	 */
	_12922(7, "_12922", "1292-2"),

	/**
	 * The '<em><b>12930</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_12930_VALUE
	 * @generated
	 * @ordered
	 */
	_12930(8, "_12930", "1293-0"),

	/**
	 * The '<em><b>12948</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_12948_VALUE
	 * @generated
	 * @ordered
	 */
	_12948(9, "_12948", "1294-8"),

	/**
	 * The '<em><b>12955</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_12955_VALUE
	 * @generated
	 * @ordered
	 */
	_12955(10, "_12955", "1295-5");

	/**
	 * The '<em><b>12856</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>12856</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_12856
	 * @model literal="1285-6"
	 * @generated
	 * @ordered
	 */
	public static final int _12856_VALUE = 0;

	/**
	 * The '<em><b>12864</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>12864</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_12864
	 * @model literal="1286-4"
	 * @generated
	 * @ordered
	 */
	public static final int _12864_VALUE = 1;

	/**
	 * The '<em><b>12872</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>12872</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_12872
	 * @model literal="1287-2"
	 * @generated
	 * @ordered
	 */
	public static final int _12872_VALUE = 2;

	/**
	 * The '<em><b>12880</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>12880</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_12880
	 * @model literal="1288-0"
	 * @generated
	 * @ordered
	 */
	public static final int _12880_VALUE = 3;

	/**
	 * The '<em><b>12898</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>12898</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_12898
	 * @model literal="1289-8"
	 * @generated
	 * @ordered
	 */
	public static final int _12898_VALUE = 4;

	/**
	 * The '<em><b>12906</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>12906</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_12906
	 * @model literal="1290-6"
	 * @generated
	 * @ordered
	 */
	public static final int _12906_VALUE = 5;

	/**
	 * The '<em><b>12914</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>12914</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_12914
	 * @model literal="1291-4"
	 * @generated
	 * @ordered
	 */
	public static final int _12914_VALUE = 6;

	/**
	 * The '<em><b>12922</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>12922</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_12922
	 * @model literal="1292-2"
	 * @generated
	 * @ordered
	 */
	public static final int _12922_VALUE = 7;

	/**
	 * The '<em><b>12930</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>12930</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_12930
	 * @model literal="1293-0"
	 * @generated
	 * @ordered
	 */
	public static final int _12930_VALUE = 8;

	/**
	 * The '<em><b>12948</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>12948</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_12948
	 * @model literal="1294-8"
	 * @generated
	 * @ordered
	 */
	public static final int _12948_VALUE = 9;

	/**
	 * The '<em><b>12955</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>12955</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_12955
	 * @model literal="1295-5"
	 * @generated
	 * @ordered
	 */
	public static final int _12955_VALUE = 10;

	/**
	 * An array of all the '<em><b>Race American Indian Iroquois</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private static final RaceAmericanIndianIroquois[] VALUES_ARRAY =
		new RaceAmericanIndianIroquois[] {
			_12856,
			_12864,
			_12872,
			_12880,
			_12898,
			_12906,
			_12914,
			_12922,
			_12930,
			_12948,
			_12955,
		};

	/**
	 * A public read-only list of all the '<em><b>Race American Indian Iroquois</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static final List<RaceAmericanIndianIroquois> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));

	/**
	 * Returns the '<em><b>Race American Indian Iroquois</b></em>' literal with the specified literal value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static RaceAmericanIndianIroquois get(String literal) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			RaceAmericanIndianIroquois result = VALUES_ARRAY[i];
			if (result.toString().equals(literal)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Race American Indian Iroquois</b></em>' literal with the specified name.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static RaceAmericanIndianIroquois getByName(String name) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			RaceAmericanIndianIroquois result = VALUES_ARRAY[i];
			if (result.getName().equals(name)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Race American Indian Iroquois</b></em>' literal with the specified integer value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static RaceAmericanIndianIroquois get(int value) {
		switch (value) {
			case _12856_VALUE: return _12856;
			case _12864_VALUE: return _12864;
			case _12872_VALUE: return _12872;
			case _12880_VALUE: return _12880;
			case _12898_VALUE: return _12898;
			case _12906_VALUE: return _12906;
			case _12914_VALUE: return _12914;
			case _12922_VALUE: return _12922;
			case _12930_VALUE: return _12930;
			case _12948_VALUE: return _12948;
			case _12955_VALUE: return _12955;
		}
		return null;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final int value;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String name;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String literal;

	/**
	 * Only this class can construct instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private RaceAmericanIndianIroquois(int value, String name, String literal) {
		this.value = value;
		this.name = name;
		this.literal = literal;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public int getValue() {
	  return value;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getName() {
	  return name;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getLiteral() {
	  return literal;
	}

	/**
	 * Returns the literal value of the enumerator, which is its string representation.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public String toString() {
		return literal;
	}
	
} //RaceAmericanIndianIroquois
